package com.crawleService;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import com.projectCommon.bean.Info;
import com.projectCommon.util.springUtil.InitContextAspect;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author 吴宇~
 * @motto 我亦无他，唯手熟尔。
 * @edition jdk1.8
 * @reflection 0-1 喧闹任其喧闹，自由我自为之，我自风情万种，与世无争。
 * @date 2024/11/30/10:34
 * @target 心若有所向往，何惧道阻且长
 */

@SpringBootApplication
@EnableDubbo
@Slf4j
@EnableAspectJAutoProxy
public class CrawlerServiceApplication {
    public static void main(String[] args) {
        Info.initShanxiTobaccoCookieMap();
        ConfigurableApplicationContext run = SpringApplication.run(CrawlerServiceApplication.class, args);
        InitContextAspect bean = run.getBean(InitContextAspect.class);
        log.info("CRAWLER SERVICE START SUCCESS !!!");
    }
}
